<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue Template</title>
</head>

<body>
    <div id="app">
        {{ message }}
        <!-- v-once指令 -->
        <div v-once>{{ message }}</div>
        <!-- v-html指令 -->
        <div v-html="url"></div>
        <!-- v-text指令 -->
        <div v-text="message"></div>
        <!-- v-pre指令 -->
        <div v-pre>{{message}}</div>
        <img v-bind:src="img" alt="">
    </div>

<script src="../js/vue.js"></script>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            message: 'hello Vue!',
            url: '<a href="http://www.baidu.com">百度一下</a>',
            img: 'https://cn.vuejs.org/images/logo.png'
        }
    })
</script>
</body>

</html>